package com.eras.shoes.contents;

public class MessageEvent<T> {

    public final static String BLE_SCAN_RESULT = "3001";                    // 蓝牙扫描结果
    public final static String BLE_MAC_SCAN_RESULT = "30001";                    // 蓝牙扫描结果
    public final static String ACTION_GATT_CONNECTED = "3002";              // 蓝牙连接成功（更改界面手的显示状态）
    public final static String ACTION_GATT_DISCONNECTED = "3003";         // 蓝牙连接失败(连接中断)
    public final static String EVENT_DEVICE_COLL_BACK = "3004";//蓝牙设备发送指令回调事件
    public final static String SMART_SHOES_BLUETOOTH_DATA = "3005"; // 定制鞋数据
    public final static String SMART_SHOES_PRESS_DATA_BACK = "3006"; // 定制鞋压力数据返回

    private String action;
    private T data;

    public MessageEvent(String action, T data) {
        this.action = action;
        this.data = data;
    }

    public MessageEvent(String message) {
        this.action = message;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
